package com.achun.ximalayamvvm.utils

import android.util.Log

class LogUtil {

    companion object{
        var CURRENT=4
        var ERROR=1
        var WARN=2
        var DEBUG=3
        var INFO=4

        fun i(tag:Any,message:String) {
            if (INFO<= CURRENT) Log.i(tag.javaClass.toString(), "info-->:$message ")
        }
        fun d(tag:Any,message:String) {
            if (DEBUG<= CURRENT) Log.d(tag.javaClass.toString(), "debug-->:$message ")
        }
        fun w(tag:Any,message:String) {
            if (WARN<= CURRENT) Log.w(tag.javaClass.toString(), "warn-->:$message ")
        }
        fun e(tag:Any,message:String) {
            if (ERROR<= CURRENT) Log.e(tag.javaClass.toString(), "error-->:$message ")
        }


    }
}